<template>
  <section class="investment-section" id="investment">
    <div class="container">
      <div class="section-header">
        <h2 class="section-title">投资机会</h2>
        <p class="section-subtitle">投资智索真源，就是投资未来的社会结构和经济形态</p>
      </div>
      
      <div class="investment-grid">
        <div class="investment-card" v-for="(item, index) in investmentOpportunities" :key="index" @click="openModal(item)">
          <div class="card-icon">
            <div class="icon-wrapper" :class="item.iconClass">
              <div class="icon-inner"></div>
            </div>
          </div>
          <h3 class="card-title">{{ item.title }}</h3>
          <p class="card-description">{{ item.description }}</p>
          <div class="card-value">
            <span class="value-label">{{ item.valueLabel }}</span>
            <span class="value-amount">{{ item.valueAmount }}</span>
          </div>
          <div class="card-glow"></div>
        </div>
      </div>
      
      <div class="investment-cta">
        <h3 class="cta-title">传承顶级投资理念，共创价值未来</h3>
        <p class="cta-description">
          我们汲取巴菲特价值投资、红杉资本创新理念、腾讯生态战略等全球顶级投资机构的智慧精华，
          结合中国本土创新实践，为投资者提供独特的价值创造机会。
        </p>
        <div class="cta-actions">
          <button class="primary-cta-button">
            <span>立即投资</span>
            <div class="button-glow"></div>
          </button>
          <button class="secondary-cta-button">
            <span>了解更多</span>
          </button>
        </div>
      </div>
    </div>
    
    <!-- Modal for detailed information -->
    <ModalComponent 
      :isVisible="showModal" 
      :title="selectedItem?.title"
      @close="closeModal"
    >
      <div v-if="selectedItem" class="modal-details">
        <div class="detail-section">
          <h4>投资亮点</h4>
          <ul>
            <li v-for="highlight in selectedItem.highlights" :key="highlight">{{ highlight }}</li>
          </ul>
        </div>
        
        <div class="detail-section">
          <h4>市场前景</h4>
          <p>{{ selectedItem.marketOutlook }}</p>
        </div>
        
        <div class="detail-section">
          <h4>预期回报</h4>
          <div class="return-metrics">
            <div class="metric">
              <span class="metric-label">短期回报</span>
              <span class="metric-value">{{ selectedItem.shortTermReturn }}</span>
            </div>
            <div class="metric">
              <span class="metric-label">长期价值</span>
              <span class="metric-value">{{ selectedItem.longTermValue }}</span>
            </div>
          </div>
        </div>
        
        <div class="detail-section">
          <h4>风险评估</h4>
          <p>{{ selectedItem.riskAssessment }}</p>
        </div>
      </div>
    </ModalComponent>
  </section>
</template>

<script>
import ModalComponent from './ModalComponent.vue'

export default {
  name: 'InvestmentSection',
  components: {
    ModalComponent
  },
  data() {
    return {
      showModal: false,
      selectedItem: null,
      investmentOpportunities: [
        {
          title: 'Skillith平台开发',
          description: 'AI驱动的智能教育与企业协同平台，解决教育与职场脱节问题',
          valueLabel: '投资金额',
          valueAmount: '5000万-1亿',
          iconClass: 'platform-icon',
          highlights: [
            '芜湖市政府支持，已成功落地',
            'AI技术精准匹配企业与人才',
            '区块链存证确保透明可信',
            '覆盖安徽省及周边省份市场'
          ],
          marketOutlook: '传承红杉资本"投资未来"理念，中国智能教育市场预计2025年将达到5000亿元，Skillith平台定位精准，市场前景广阔。',
          shortTermReturn: '3-5年实现盈亏平衡',
          longTermValue: '10年内估值突破100亿',
          riskAssessment: '技术风险较低，市场风险可控，政策风险较小，符合价值投资理念'
        },
        {
          title: '正核博弈生态',
          description: '构建基于贡献值的社会资源分配体系，推动社会财富持续增长',
          valueLabel: '生态价值',
          valueAmount: '无上限',
          iconClass: 'ecosystem-icon',
          highlights: [
            '创新的正核博弈理念',
            '社会财富总量持续增长',
            '区块链技术保障公平透明',
            '跨星际愿景的长期价值'
          ],
          marketOutlook: '借鉴腾讯"连接一切"生态理念，正核博弈理念将重塑传统经济模式，创造全新的价值创造和分配机制。',
          shortTermReturn: '5年内建立完整生态',
          longTermValue: '成为未来社会基础设施',
          riskAssessment: '理念创新风险较高，但长期价值巨大，适合长期投资者'
        },
        {
          title: '生物科技扩展',
          description: '将贡献值体系扩展至生物科技领域，支持人类寿命延长技术突破',
          valueLabel: '科技价值',
          valueAmount: '万亿级',
          iconClass: 'biotech-icon',
          highlights: [
            '生命延长技术突破',
            '贡献值换取药物机制',
            '跨星际文明愿景',
            '人类文明进步基石'
          ],
          marketOutlook: '传承软银愿景基金"投资未来科技"理念，生物科技是21世纪最具潜力的领域，结合贡献值体系将创造前所未有的价值。',
          shortTermReturn: '10年内技术突破',
          longTermValue: '推动人类进入跨星际时代',
          riskAssessment: '技术风险极高，但潜在回报巨大，适合风险承受能力强的投资者'
        },
        {
          title: '智能风控系统',
          description: 'AI实时监控平台活动，确保项目进展透明合规，提供强大风险预警',
          valueLabel: '技术价值',
          valueAmount: '10亿+',
          iconClass: 'security-icon',
          highlights: [
            'AI实时风险监控',
            '区块链不可篡改存证',
            '智能预警系统',
            '保障合作高效安全'
          ],
          marketOutlook: '学习字节跳动"数据驱动"理念，智能风控是金融科技的核心需求，市场空间巨大且持续增长。',
          shortTermReturn: '2-3年实现商业化',
          longTermValue: '成为行业标准解决方案',
          riskAssessment: '技术风险中等，市场风险较低，适合稳健型投资者'
        },
        {
          title: '教育产业升级',
          description: '通过智能化手段提升青少年综合素养，特别是工科类领域素质',
          valueLabel: '社会价值',
          valueAmount: '不可估量',
          iconClass: 'education-icon',
          highlights: [
            '提升青少年综合素养',
            '工科类领域重点培养',
            '实践能力与理论结合',
            '企业教育无缝对接'
          ],
          marketOutlook: '借鉴阿里巴巴"让天下没有难做的生意"理念，教育产业正在经历数字化转型，智能化教育是未来发展趋势。',
          shortTermReturn: '3-5年覆盖安徽省',
          longTermValue: '推动整个教育体系变革',
          riskAssessment: '政策风险较低，社会价值巨大，适合社会责任投资者'
        },
        {
          title: '跨星际愿景',
          description: '推动人类科技进步，迈向跨星际文明的新时代',
          valueLabel: '文明价值',
          valueAmount: '无限',
          iconClass: 'future-icon',
          highlights: [
            '人类文明进步基石',
            '跨星际探索基础',
            '科技突破驱动',
            '无限发展空间'
          ],
          marketOutlook: '传承马斯克"让人类成为多星球物种"愿景，跨星际文明是人类发展的终极目标，具有无限的市场空间和价值潜力。',
          shortTermReturn: '20年内技术积累',
          longTermValue: '推动人类进入宇宙时代',
          riskAssessment: '时间风险极高，但具有划时代意义，适合超长期投资者'
        }
      ]
    }
  },
  methods: {
    openModal(item) {
      this.selectedItem = item
      this.showModal = true
    },
    closeModal() {
      this.showModal = false
      this.selectedItem = null
    }
  }
}
</script>

<style scoped>
.investment-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0A2463 0%, #1F41BB 50%, #0066FF 100%);
  position: relative;
  overflow: hidden;
}

.investment-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  color: #FFFFFF;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #8A2BE2, #00B9AE);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.investment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.investment-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  color: #FFFFFF;
}

.investment-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 185, 174, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.investment-card:hover .card-glow {
  opacity: 1;
}

.card-icon {
  margin-bottom: 1.5rem;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.platform-icon {
  background: linear-gradient(135deg, #0066FF, #8A2BE2);
}

.ecosystem-icon {
  background: linear-gradient(135deg, #8A2BE2, #00B9AE);
}

.biotech-icon {
  background: linear-gradient(135deg, #00B9AE, #0066FF);
}

.security-icon {
  background: linear-gradient(135deg, #FF6B6B, #8A2BE2);
}

.education-icon {
  background: linear-gradient(135deg, #4ECDC4, #0066FF);
}

.future-icon {
  background: linear-gradient(135deg, #8A2BE2, #FF6B6B);
}

.icon-inner {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  position: relative;
}

.platform-icon .icon-inner::before {
  content: '🚀';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}

.ecosystem-icon .icon-inner::before {
  content: '🌐';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}

.biotech-icon .icon-inner::before {
  content: '🧬';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}

.security-icon .icon-inner::before {
  content: '🛡️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}

.education-icon .icon-inner::before {
  content: '🎓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}

.future-icon .icon-inner::before {
  content: '⭐';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.value-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.value-amount {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8A2BE2, #00B9AE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.investment-cta {
  text-align: center;
  color: #FFFFFF;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.primary-cta-button {
  position: relative;
  background: linear-gradient(135deg, #8A2BE2, #00B9AE);
  color: #FFFFFF;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.primary-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(138, 43, 226, 0.4);
}

.button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.primary-cta-button:hover .button-glow {
  left: 100%;
}

.secondary-cta-button {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.secondary-cta-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.modal-details {
  color: #2D3748;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0A2463;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #0066FF;
}

.detail-section ul {
  list-style: none;
  padding: 0;
}

.detail-section li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.detail-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00B9AE;
  font-weight: bold;
}

.detail-section p {
  line-height: 1.7;
}

.return-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric {
  background: linear-gradient(135deg, #F5F7FA, #E8F4FD);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 0.9rem;
  color: #2D3748;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0066FF, #8A2BE2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .investment-section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .investment-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .investment-card {
    padding: 2rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .return-metrics {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }
}
</style>
